﻿using Reticulum.Properties;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Configuration;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Reticulum.MyBackgroundImg
{
    public partial class SelectTheBackground : Form
    {
        public SelectTheBackground()
        {
            InitializeComponent();
        }

        private void over_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        public static void Clickstyle(int index)
        {
            if (index == 0)
            {
                Loads.client.CurrentlyDownload.BackgroundImage = Resources.Clikecolor;
                Loads.client.CurrentlyUpload.BackgroundImage = null;
                Loads.client.CurrentlyEnd.BackgroundImage = null; 
            }
            else if (index == 1)
            {
                Loads.client.CurrentlyDownload.BackgroundImage = null;
                Loads.client.CurrentlyUpload.BackgroundImage = Resources.Clikecolor;
                Loads.client.CurrentlyEnd.BackgroundImage = null;
            }
            else
            {
                Loads.client.CurrentlyDownload.BackgroundImage = null;
                Loads.client.CurrentlyUpload.BackgroundImage = null;
                Loads.client.CurrentlyEnd.BackgroundImage = Resources.Clikecolor;
            }
        }

        private void button1_Click(object sender, EventArgs e)
        {
            //01-霜茶白
            Loads.client.BackgroundImage = Resources._01主题_冰霜白;
            Loads.client.listView1.BackgroundImage = null;
            Button[] ButtonColor = { Loads.client.button1, Loads.client.button2, Loads.client.button3, Loads.client.button4, Loads.client.button5, Loads.client.UpLoadFlie, Loads.client.DownloadFlie, Loads.client.Privacy, Loads.client.Dump };
            for (int i = 0; i < ButtonColor.Length; i++)
            {
                ButtonColor[i].ForeColor = Color.Black;
            }

            Loads.client.Client_Load(sender, e);//刷新界面
            



        }

        private void button5_Click(object sender, EventArgs e)
        {
            Loads.client.BackgroundImage = Resources._08主题_多罗罗;
            Loads.client.listView1.BackgroundImage = Resources._08主题2_多罗罗;
            Button[] ButtonColor = { Loads.client.button1, Loads.client.button2, Loads.client.button3, Loads.client.button4, Loads.client.button5, Loads.client.UpLoadFlie, Loads.client.DownloadFlie, Loads.client.Privacy, Loads.client.Dump };
            for (int i = 0; i < ButtonColor.Length; i++)
            {
                ButtonColor[i].ForeColor = Color.Black;
            }

            Loads.client.Client_Load(sender, e);//刷新界面

        }

        private void SelectTheBackground_Load(object sender, EventArgs e)
        {

        }
    }
}
